//
//  BaseVC.h
//  质检
//
//  Created by Mac on 2018/3/28.
//  Copyright © 2018年 158682312@qq.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "define.h"

@interface BaseVC : UIViewController <UIGestureRecognizerDelegate>
/* ------------------  分页相关  ------------------ */
@property(nonatomic, assign)int pageSize;               //每页显示数量
@property(nonatomic, strong)NSString *pageLastID;       //下次请求起始id
#pragma mark - Network begin
//开始网络请求
- (void)afNetworkBeginWithHost:(NSString *)aHostName path:(NSString *)aPath params:(NSDictionary *)aParams httpMethod:(NSString *)aHttpMethod selectorName:(NSString *)aSelectorName;

#pragma mark - NetWork success
//网络请求成功
- (void)networkSuccessWithResponseDic:(NSDictionary *)responseDic networkPath:(NSString *)aNetworkPath statusModel:(ZXTAPIStatus *)status;

#pragma mark - Network error
//网络请求失败
- (void)networkAPIError:(NSDictionary *)responseDic networkPath:(NSString *)aNetworkPath statusModel:(ZXTAPIStatus *)status;
//网络错误
- (void)networkError:(NSError *)error networkPath:(NSString *)aNetworkPath;

#pragma mark - error HUD
//显示错误HUD
- (void)showErrorHUD:(NSError *)error;

//路径
- (NSString *)getFilePathWithImageName:(NSString *)imageName;
// 下载ß
-(void)DownloadImageViewByUrl:(NSString*)url andImageName:(NSString*)imageName;
@end
